<?php

namespace App\Http\Controllers\Api\V1;

use App\Models\BlindBoxCategory;
use App\Http\Controllers\Api\V1\Resources\BoxCatrgroyResource;

class BoxCategoriesController extends Controller
{
    public function index()
    {
    	$categories = BlindBoxCategory::query()->show()->orderByDesc('id')->paginate();
        
    	return BoxCatrgroyResource::collection($categories);
    }
}
